package com.xczl.demo.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.xczl.demo.dao.GoodsCateDao;
import com.xczl.demo.domain.GoodsCate;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:root-context.xml" })
public class GoodsCateDelete {

	@Autowired
	private GoodsCateDao goodsCateDao;

	@Test
	public void delete() {
		GoodsCate goodsCate = new GoodsCate();
		goodsCate.setCateId(1);
		goodsCateDao.deleteGoodsCate(goodsCate.getCateId());
	
	}
}
	